.container {
  min-height: 100vh;
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.main {
  padding: 5rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.footer {
  width: 100%;
  height: 60px;
  border-top: 1px solid var(--gray);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer a {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.title {
  margin: 0;
  line-height: 1.15;
  font-size: 3rem;
  text-align: center;
}

.title,
.description {
  text-align: center;
}

.highlight {
  color: var(--primary-color);
}

.description {
  line-height: 1.5;
  font-size: 1.5rem;
  margin: 1rem 0;
}

.grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin-top: 3rem;
}

.card {
  margin: 1rem;
  padding: 1.5rem;
  text-align: left;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  transition: var(--transition);
  width: 45%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.card:hover,
.card:focus,
.card:active {
  color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: var(--box-shadow);
}

.card h2 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
}

.card p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
  flex-grow: 1;
}

.logo {
  color: var(--primary-color);
  font-weight: bold;
}

.counter {
  margin: 2rem 0;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  background-color: var(--light-gray);
  width: 100%;
  max-width: 400px;
}

.button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  margin: 0.5rem;
  transition: var(--transition);
}

.button:hover {
  background-color: #0051a2;
}

.buttonContainer {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.list {
  text-align: left;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.list li {
  margin-bottom: 0.5rem;
}

.content {
  width: 100%;
  max-width: 800px;
  margin: 2rem 0;
  line-height: 1.6;
}

.excerpt {
  font-style: italic;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.loading {
  margin: 2rem 0;
  text-align: center;
}

.dashboard {
  width: 100%;
  max-width: 800px;
  margin: 2rem 0;
}

.statsGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.statCard {
  padding: 1.5rem;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  text-align: center;
  background-color: var(--light-gray);
}

.statValue {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 0.5rem 0;
}

.referrers {
  padding: 1.5rem;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  background-color: var(--light-gray);
}

.referrers ul {
  list-style-type: none;
  padding: 0;
}

.referrers li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray);
}

.referrers li:last-child {
  border-bottom: none;
}

@media (max-width: 600px) {
  .grid {
    width: 100%;
    flex-direction: column;
  }
  
  .card {
    width: 100%;
  }
  
  .statsGrid {
    grid-template-columns: 1fr;
  }
}
